import Vue from 'vue';
import Vuex from 'vuex';

import admin from './modules/admin'
import VuexPersistence from 'vuex-persist'
Vue.use(Vuex);

const vuexLocal = new VuexPersistence({
    storage: window.localStorage
})
export default new Vuex.Store({
    modules: {
        admin
    },
    plugins: [vuexLocal.plugin]
})
